<?php

		$menu = JToolBar::getInstance('minimenu');
		$list = $menu->_bar;
		if (!is_array($list) || !count($list)) {
			return ;
		}else{
		?> 
		<style>
			#minimenu a.active, #minimenu span.nolink.active {
				color:#000000;
				text-decoration:underline;
			}
			#minimenu li {
				float:left;
				margin:0;
				padding:0;
				border-right:1px solid #CCCCCC;
				color:#0B55C4;
				cursor:pointer;
				font-weight:bold;
				height:12px;
				line-height:12px;
				padding:0 15px;
			}			
			#minimenu {
				display: inline;
				list-style-image:none;
				list-style-position:outside;
				list-style-type:none;
				margin: 0px;
				padding: 0px;
			}
			.minim{
				border-left:1px solid #CCCCCC;
				border-right:1px solid #CCCCCC;
				padding:0 8px;
			}
		</style>
		<div id="minimenu-box">

			<div class="t">
				<div class="t">
					<div class="t"></div>
		 		</div>
	 		</div>
			<div class="minim">
		
		<?php
		
		$txt .= "<ul id=\"minimenu\">\n";

		/*
		 * Iterate through the link items for building the menu items
		 */
		foreach ($list as $item)
		{
			$txt .= "<li>\n";
		
				if (isset ($item[2]) && $item[2] == 1) {
					$txt .= "<a class=\"active\" href=\"".JFilterOutput::ampReplace($item[1])."\">".$item[0]."</a>\n";
				}
				else {
					$txt .= "<a href=\"".JFilterOutput::ampReplace($item[1])."\">".$item[0]."</a>\n";
				}
		
			$txt .= "</li>\n";
		}

		$txt .= "</ul>\n";
		echo $txt;
		?><div class="clr"></div>
			</div>
			<div class="b">
				<div class="b">
		 			<div class="b"></div>
				</div>
			</div>
		</div>

		<?php
		}
		
		
?>